package lab02.test04;

public class Employee {
    private String number;
    private String name;
    private int salary;
    private int increase;

    public Employee(String code,String name,int salary,int increase){
        this.number = number;
        this.name = name;
        this.salary = salary;
        this.increase = increase;
    }
    public int sum(){
        return(salary+increase);
    }
    public void print(){
        System.out.println("编号:" + this.number + "\t" +"姓名" +this.name
        + "\t" + "基本薪金" + this.salary +"\t" +"薪水增长" + this.increase
         + "工资总额:" + this.sum());
    }

    public String getNumber() {
        return number;
    }
    public void setNumber(String number){
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    public int getIncrease() {
        return increase;
    }

    public void setIncrease(int increase) {
        this.increase = increase;
    }
}
